
	<!-- Album overview component -->
	
		<h3><?= fill( getTerm('albums', 'user_albums') , $albumUser['username'] ) ?></h3>
	
		<?php if ($hasWritePermission) { ?>
		<p class="hint">
			<?= getTerm('albums', 'move_photo_hint') ?>
		</p>
		<?php } ?>
		
		<ul id="albumOverviewItems">
		
		<?php foreach ( $albums as $alb ) { ?>
			
			<li id="album-<?= $alb['aid'] ?>" class="<?php if ($alb['aid']==$currentAlbumId) { ?>current <?php } if ($alb['photoCount']==0) {?>emptyAlbum <?php } ?>album">
			
			<?php if ( $alb['photoCount']>0 ) { ?>
				<img src="<?= "/Thumbs/${alb[pid]}-square.jpg" ?>" alt="" />
			<?php } ?>
				
				<a href="<?= formatUrl("/albums/${albumUser[username]}/${alb[path]}/") ?>"><?= $alb['name'] ?></a>
				<div class="albumCountInfo">
					<?	if ( $alb['photoCount']>0 )
							print fill( getTerm('albums', 'photo_count') , $alb['photoCount'] );
						else
							print getTerm('albums', 'empty_album');
					?>
				</div>
				
			</li>
			
		<?php } ?>
	
		<?php if ($hasWritePermission) { ?>
		
			<li id="album-0" class="newAlbum album">
				<a href="#" onClick="showDynamicForm('createAlbumForm');return false;"><?= getTerm('albums', 'new_album') ?></a>
				<div class="albumCountInfo"><?= getTerm('albums', 'new_album_hint') ?></div>
			</li>
			
		<?php } ?>
		
		</ul>
		